<div class="container-fluid col-lg-10 col-xl-8 py-5">
    <div class="row">
        <div class="col-12">
            <h2>Мои команды</h2>
        </div>
        <div class="col-12 mb-3">
            <label for="searchString" class="form-label">Поиск</label>
            <input type="text" class="form-control" id="searchString" wire:model="searchString">
        </div>
    </div>
    <div class="row">
        @foreach($teamList->filter(function ($value, $key) use ($searchString) { return str_contains($value->name, $searchString); })->all() as $team)
            @livewire('team-list-item', ['team' => $team], key('team-' . $team->id))
        @endforeach
    </div>
</div>
